package cn.silver.module.message.bean;

import cn.silver.framework.mybatis.bean.BusBean;
import cn.silver.module.message.domain.MsgChannel;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MsgChannel.class)
@Schema(name = "ChannelBean", title = "消息管理-消息渠道配置对象")
public class ChannelBean extends BusBean implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 渠道类型
     */
    @Schema(title = "渠道类型")
    private String type;
    /**
     * 访问地址
     */
    @Schema(title = "访问地址")
    private String endpoint;
    /**
     * 认证码
     */
    @Schema(title = "认证码")
    private String access;
    /**
     * 授权码
     */
    @Schema(title = "授权码")
    private String secret;
}
